package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectCategoryDTO;
import com.jingdianjichi.subject.domain.entity.SubjectCategoryBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryDTOConvert {
        SubjectCategoryDTOConvert INSTANCE = Mappers.getMapper(SubjectCategoryDTOConvert.class);
        SubjectCategoryBO convertBoToCategory(SubjectCategoryDTO subjectCategoryDTO);
        List<SubjectCategoryDTO> convertBoToCategoryDTOList(List<SubjectCategoryBO> subjectCategoryBOList);
        SubjectCategoryBO convertCategoryDTOToBo(SubjectCategoryDTO subjectCategorydto);
        SubjectCategoryDTO convertBoToSubjectCategoryDTO(SubjectCategoryBO subjectCategoryBO);

}
